const fs = require('fs');
const { instantiate } = require('@wasm-tool/node');
var sign;


//   getUint8Memory0().subarray(ptr, ptr + len)
(async () => {
  const wasmBuffer = fs.readFileSync('./pkg/index_bg.wasm');
  const { instance } = await WebAssembly.instantiate(wasmBuffer, {
    // 可能需要提供 WASM 的导入对象
  });

   sign = instance.exports.sign;

})();
let t = Date.parse(new Date());

var list = {
    "sign": sign(1 + '|' + t.toString()),
    "t": t,
};
console.log(list)